package ReSofting.it.GoldDirector.Adapters;

import ReSofting.it.GoldDirector.R;
import android.content.Context;
import android.database.Cursor;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.CheckBox;
import android.widget.CheckedTextView;
import android.widget.CursorAdapter;

public class CheckListAdapter2  extends CursorAdapter {

		Context _context = null;
		public CheckListAdapter2(Context context, Cursor c) {
			super(context, c);
			_context = context;
		}

		@Override
		public void bindView(View view, Context context, Cursor cursor) 
		{
		
			String o = cursor.getString(cursor.getColumnIndex("Name")  );
			
			CheckBox tt = (CheckBox) view.findViewById(R.id.checkBoxRow);
			
		}

		@Override
		public View newView(Context context, Cursor cursor, ViewGroup parent) {
			View v;
			LayoutInflater vi = (LayoutInflater) _context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
			v = vi.inflate(R.layout.checkrow, null);
			return v;
		}
		}
